package com.czkt.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

public class MD5Utils {

    public static void main(String[] args) {
        Md5Hash md5Hash = new Md5Hash("123456", "czkt",2);

        System.out.println(md5Hash.toString());
    }


    public static String getMd5String(Object source, Object salt, int hashIterations){
        Md5Hash md5Hash = new Md5Hash(source, salt,hashIterations);
        return  md5Hash.toString();
    }
}
